<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>   

<h2>공지사항</h2>
<table id="content" border="1" align="center">
	<tr>
		<td width="65px">글번호</td>
		<td>제목</td>		
		<td width="60">작성일</td>
		<td width="60">조회수</td>
	</tr>
	<c:forEach items="${requestScope.lto.list}" var="li">
		<tr>
			<td>${li.no }</td>
			<td>
				<c:forEach begin="1" end="${li.relevel }" step="1">
					&nbsp;&nbsp;
				</c:forEach>
				<c:if test="${li.relevel != 0 }">
					→
				</c:if>
				<a href="listShow.do?no=${li.no }&title=${li.title}&writedate=${li.writedate}
				&viewcount=${li.viewcount}&content=${li.content}&page=${requestScope.lto.pagingTO.currentPage}">
					${li.title }
				</a>
			</td>			
			<td>${li.writedate }</td>
			<td>${li.viewcount }</td>
		</tr>	
	</c:forEach>
	
</table>
<p>
<table align="center">
	<tr>
		<td>		
		<c:choose>
			<c:when test="${requestScope.lto.pagingTO.previousPageGroup }">
				<a href="/kosta_project_final_taxi/list.do?page=${requestScope.lto.pagingTO.startPageOfPageGroup -1 }">
				◀
				</a>
			</c:when>
			<c:otherwise>
				◀
			</c:otherwise>
		</c:choose>
		<c:forEach begin="${requestScope.lto.pagingTO.startPageOfPageGroup }"
							   end="${requestScope.lto.pagingTO.endPageOfPageGroup }"
							   step="1"
							   var ="i">
			<c:choose>
				<c:when test="${i == requestScope.lto.pagingTO.currentPage }">
					${i }
				</c:when>
				<c:otherwise>
					<a href="/kosta_project_final_taxi/list.do?page=${i }">${i }</a>
				</c:otherwise>
			</c:choose>			
		</c:forEach>
		<c:choose>
			<c:when test="${requestScope.lto.pagingTO.nextPageGroup }">
				<a href="/kosta_project_final_taxi/list.do?page=${requestScope.lto.pagingTO.endPageOfPageGroup + 1 }">
					▶
				</a>
			</c:when>
			<c:otherwise>
				▶
			</c:otherwise>
		</c:choose>
		
		<td>
	</tr>
</table>




